package com.ss.android.article.base;

import com.bytedance.retrofit2.Call;
import com.bytedance.retrofit2.http.ExtraInfo;
import com.bytedance.retrofit2.http.FieldMap;
import com.bytedance.retrofit2.http.FormUrlEncoded;
import com.bytedance.retrofit2.http.GET;
import com.bytedance.retrofit2.http.MaxLength;
import com.bytedance.retrofit2.http.POST;
import com.bytedance.retrofit2.http.QueryMap;
import com.bytedance.retrofit2.http.Url;

import java.util.Map;

public interface IArticleApi {
    @GET(a = "/2/article/v46/refresh_tip/")
    Call<String> articleTip(@MaxLength int maxLength,
                            @QueryMap(encoded = true) Map<String, String> queryMap);

    @GET
    Call<String> getArticleList(@MaxLength int maxLength,
                                @Url String url,
                                @QueryMap(encoded = true) Map<String, String> queryMap,
                                @ExtraInfo Object extraInfo);

    @FormUrlEncoded
    @POST
    Call<String> postArticleList(@MaxLength int maxLength,
                                 @Url String url,
                                 @FieldMap(a = true) Map<String, String> fieldMap,
                                 @ExtraInfo Object extraInfo);
}